package cn.minhx.infrastructure.dao;

import cn.minhx.infrastructure.dao.po.GroupBuyOrder;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户拼单
 *
 * @author min
 */
@Mapper
public interface IGroupBuyOrderDAO {

	void insert(GroupBuyOrder groupBuyOrder);

	int updateAddLockCount(String teamId);

	int updateSubtractionLockCount(String teamId);

	GroupBuyOrder queryGroupBuyProgress(String teamId);

	GroupBuyOrder queryGroupBuyTeamByTeamId(String teamId);

	int incrementCompleteCount(String teamId);

	int updateOrderStatusToComplete(String teamId);
}
